package lxt.service;

import java.util.List;

import lxt.entity.Parameter;
import lxt.entity.ParameterId;

public interface ParameterService {
	/**
	 * 根据paramType 查询信息
	 */
	public List<Parameter> loadByParamType(String paramType)throws Exception;
	/**
	 * 加载信息 
	 * @return
	 */
	public List<Parameter> loadParameter(String paramType,final int offset, final int length)throws Exception;
	/**
	 * 添加
	 * @param client
	 * @return
	 * @throws Exception
	 */
	public boolean addParameter(Parameter parameter)throws Exception;
	/**
	 * 根据id查找
	 * @param clientId
	 * @return
	 * @throws Exception
	 */
	public Parameter loadParameterById(ParameterId parameterId)throws Exception;
	/**
	 * 修改
	 * @param client
	 * @return
	 * @throws Exception
	 */
	public boolean updateParameter(Parameter parameter)throws Exception;
	/**
	 * 查询数量
	 */
	public int loadAllParameterCount(String paramType)throws Exception;
	
	/**
	 * 批量删除
	 * @param deleteIds
	 * @throws Exception
	 */
	public void deleteParameter(String deleteIds) throws Exception;
}
